<?php
/* @var $this AgentRechargeController */
/* @var $model AgentRecharge */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<div class="row">
		<?php echo $form->label($model,'recharge_time'); ?>
            <input class="Wdate" type="text" name="AgentRecharge[recharge_time]" 
	 value="<?php echo $model->recharge_time=='0000-00-00'?date("Y-m-d"):$model->recharge_time;?>" onClick="WdatePicker({startDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true})" />
	</div>

	<div class="row">
		<?php echo $form->label($model,'recharge_number'); ?>
		<?php echo $form->textField($model,'recharge_number'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'recharge_type'); ?>
            <?php echo $form->dropDownList($model,'recharge_type',array('1'=> Yii::t('base','Card Infos'),'2'=>Yii::t('base','Bank Card'),'3'=>Yii::t('base','Deduct the deposit'),'4'=>Yii::t('base','remittance'))); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'txnid'); ?>
		<?php echo $form->textField($model,'txnid',array('size'=>50,'maxlength'=>50)); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton(Yii::t('base', 'search')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->